package com.sunstar.club.subject.domain.convert;

import com.sunstar.club.subject.domain.entity.SubjectCategoryBo;
import com.sunstar.club.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: Shylo Sun
 * @Project: track-club
 * @Date: 2024/2/15 23:05
 */
@Mapper
public interface SubjectCategoryConverter {

    SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);

    SubjectCategory convertBoToCategory(SubjectCategoryBo subjectCategoryBo);

    List<SubjectCategoryBo> convertBoToCategory(List<SubjectCategory> subjectCategoryList);

}
